/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-16<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.controller.tool;

import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-16<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Controller
@RequestMapping(value = "tools")
public class ToolsPageController {

    @GetMapping(value = "jsonFormat")
    public ModelAndView dbInfoPage() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("jsonFormat");
        modelAndView.setStatus(HttpStatus.OK);
        return modelAndView;
    }
    
    @GetMapping(value = "welcome")
    public ModelAndView welcomePage() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("welcome");
        modelAndView.setStatus(HttpStatus.OK);
        return modelAndView;
    }
}
